package cn.shop.transcation.withdraw.mapper;


import cn.shop.base.MyBaseMapper;
import cn.shop.transcation.withdraw.entity.Withdraw;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 提现(Withdraw)表数据库访问层
 *
 * @author jzw
 * @since 2021-11-10 10:06:01
 */
public interface WithdrawMapper extends MyBaseMapper<Withdraw> {

	/**
	 * 批量删除并更新操作人和操作时间
	 *
	 * @param param   实体类
	 * @param wrapper 删除条件
	 * @return 删除影响条数
	 * @author jzw
	 * @since 2021/11/15 13:54
	 */
	int batchDeleteWithFill(@Param(Constants.ENTITY) Withdraw param, @Param(Constants.WRAPPER) Wrapper<Withdraw> wrapper);

	Map<String,Object> getStatistics(@Param("ew") QueryWrapper withdraw);
}

